package demo;

import java.lang.reflect.InvocationTargetException;

public class SensitiveInfoTest {
    public static void main(String[] args) throws InvocationTargetException, IllegalAccessException {
        User user = new User();
        user.setMobile("13812345678");
        SensitiveInfoProcessor.process(user);
        System.out.println(user.getMobile()); // 输出 "138****5678"
        System.out.println(user.getIdCard()); // 输出 "110101********1234"

    }
}
